package com.fizzkai.p2p.mgrsite.controller;

import com.fizzkai.p2p.core.query.IpLogQuery;
import com.fizzkai.p2p.core.service.IIpLogService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IpLogController {

    @Autowired
    private IIpLogService ipLogService;


    @RequestMapping("/ipLog")
    public String ipLog(@ModelAttribute("qo") IpLogQuery qo, Model model){
        PageInfo pageInfo = ipLogService.queryPage(qo);
        model.addAttribute("pageInfo", pageInfo);
        return "iplog/list";
    }
}
